<?php

namespace app\common\model;

use think\Model;
use app\common\model\City;
class CarryMode extends Model
{
    public function getRegionAttr($value){
       
        $city = City::get($value);
        if($city&&$city->name){
            return $city['name'];
        }else{
            return '默认运费';
        }
    }
}
